Integrand size = 22, antiderivative size = 38 \[ \int \csc (c+d x) \sqrt {a-a \sin (c+d x)} \, dx=-\frac {2 \sqrt {a} \text {arctanh}\left (\frac {\sqrt {a} \cos (c+d x)}{\sqrt {a-a \sin (c+d x)}}\right )}{d} \]
[Out]
Time = 0.04 (sec) , antiderivative size = 38, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {2852, 212} \[ \int \csc (c+d x) \sqrt {a-a \sin (c+d x)} \, dx=-\frac {2 \sqrt {a} \text {arctanh}\left (\frac {\sqrt {a} \cos (c+d x)}{\sqrt {a-a \sin (c+d x)}}\right )}{d} \]
[In]
[Out]
Rule 212
Rule 2852
Rubi steps \begin{align*} \text {integral}& = \frac {(2 a) \text {Subst}\left (\int \frac {1}{a-x^2} \, dx,x,-\frac {a \cos (c+d x)}{\sqrt {a-a \sin (c+d x)}}\right )}{d} \\ & = -\frac {2 \sqrt {a} \text {arctanh}\left (\frac {\sqrt {a} \cos (c+d x)}{\sqrt {a-a \sin (c+d x)}}\right )}{d} \\ \end{align*}
Leaf count is larger than twice the leaf count of optimal. \(97\) vs. \(2(38)=76\).
Time = 0.30 (sec) , antiderivative size = 97, normalized size of antiderivative = 2.55 \[ \int \csc (c+d x) \sqrt {a-a \sin (c+d x)} \, dx=\frac {\left (\log \left (1-\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )-\log \left (1+\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )\right ) \sqrt {a-a \sin (c+d x)}}{d \left (\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(66\) vs. \(2(32)=64\).
Time = 1.01 (sec) , antiderivative size = 67, normalized size of antiderivative = 1.76
method | result | size |
default | \(\frac {2 \left (\sin \left (d x +c \right )-1\right ) \sqrt {a \left (1+\sin \left (d x +c \right )\right )}\, \sqrt {a}\, \operatorname {arctanh}\left (\frac {\sqrt {a \left (1+\sin \left (d x +c \right )\right )}}{\sqrt {a}}\right )}{\cos \left (d x +c \right ) \sqrt {a -a \sin \left (d x +c \right )}\, d}\) | \(67\) |
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 223, normalized size of antiderivative = 5.87 \[ \int \csc (c+d x) \sqrt {a-a \sin (c+d x)} \, dx=\left [\frac {\sqrt {a} \log \left (\frac {a \cos \left (d x + c\right )^{3} - 7 \, a \cos \left (d x + c\right )^{2} - 4 \, {\left (\cos \left (d x + c\right )^{2} - {\left (\cos \left (d x + c\right ) + 3\right )} \sin \left (d x + c\right ) - 2 \, \cos \left (d x + c\right ) - 3\right )} \sqrt {-a \sin \left (d x + c\right ) + a} \sqrt {a} - 9 \, a \cos \left (d x + c\right ) - {\left (a \cos \left (d x + c\right )^{2} + 8 \, a \cos \left (d x + c\right ) - a\right )} \sin \left (d x + c\right ) - a}{\cos \left (d x + c\right )^{3} + \cos \left (d x + c\right )^{2} - {\left (\cos \left (d x + c\right )^{2} - 1\right )} \sin \left (d x + c\right ) - \cos \left (d x + c\right ) - 1}\right )}{2 \, d}, \frac {\sqrt {-a} \arctan \left (\frac {\sqrt {-a \sin \left (d x + c\right ) + a} \sqrt {-a} {\left (\sin \left (d x + c\right ) + 2\right )}}{2 \, a \cos \left (d x + c\right )}\right )}{d}\right ] \]
[In]
[Out]
\[ \int \csc (c+d x) \sqrt {a-a \sin (c+d x)} \, dx=\int \sqrt {- a \left (\sin {\left (c + d x \right )} - 1\right )} \csc {\left (c + d x \right )}\, dx \]
[In]
[Out]
\[ \int \csc (c+d x) \sqrt {a-a \sin (c+d x)} \, dx=\int { \sqrt {-a \sin \left (d x + c\right ) + a} \csc \left (d x + c\right ) \,d x } \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 104 vs. \(2 (32) = 64\).
Time = 0.38 (sec) , antiderivative size = 104, normalized size of antiderivative = 2.74 \[ \int \csc (c+d x) \sqrt {a-a \sin (c+d x)} \, dx=\frac {\sqrt {a} \log \left (\frac {{\left | -4 \, \sqrt {2} - \frac {2 \, {\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 1\right )}}{\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1} - 6 \right |}}{{\left | 4 \, \sqrt {2} - \frac {2 \, {\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 1\right )}}{\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1} - 6 \right |}}\right ) \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}{d} \]
[In]
[Out]
Timed out. \[ \int \csc (c+d x) \sqrt {a-a \sin (c+d x)} \, dx=\int \frac {\sqrt {a-a\,\sin \left (c+d\,x\right )}}{\sin \left (c+d\,x\right )} \,d x \]
[In]
[Out]